package com.guli.mall.pms.feign;

import com.guli.common.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/*
 * @Author 罗
 * @date 2020/9/20 - 8:52 上午
 */
@FeignClient(name = "aliyun-oss-service")
public interface AliOssFeignClient {

    @PostMapping("/mall/ali/oss/deleteFileByObjectURL")
    @ApiOperation("根据对象URL删除对象")
    public R deleteFileByObjectURL(@RequestBody String objectUrl);

    @GetMapping("/mall/ali/oss/getOssHost")
    public R getOssHost() ;
}
